<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改买卖登记')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-regislatorbuyorsellorsell-edit" th:object="${regislatorbuyorsellorsell}">

            <div class="form-group">    
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">手机号码：</label>
                <div class="col-sm-8">
                    <input name="phoneNumber" th:field="*{phoneNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买卖类型：</label>
                <div class="col-sm-8">
                    <input name="buyOrSellOrLent" th:field="*{buyOrSellOrLent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">详细地址：</label>
                <div class="col-sm-8">
                    <input name="detailLocation" th:field="*{detailLocation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否是房东：</label>
                <div class="col-sm-8" required>
                    <input type="radio" name="isMaster" value="1" th:attr="checked=*{isMaster}" />是&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="isMaster" value="0" th:attr="checked=!*{isMaster}" />否
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">描述：</label>
                <div class="col-sm-8">
                    <input name="description" th:field="*{description}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">建筑面积：</label>
                <div class="col-sm-8">
                    <input name="buildingArea" th:field="*{buildingArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否包含家具：</label>
                <div class="col-sm-8" required>
                    <input type="radio" name="ifIncludeFurniture" value="1" th:attr="checked=*{ifIncludeFurniture}" />是&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="ifIncludeFurniture" value="0" th:attr="checked=!*{ifIncludeFurniture}" />否
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">价格：</label>
                <div class="col-sm-8">
                    <input name="price" th:field="*{price}" class="form-control" type="text">
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/regislatorbuyorsellorsell";
        $("#form-regislatorbuyorsellorsell-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-regislatorbuyorsellorsell-edit').serialize());
            }
        }
    </script>
</body>
</html>